.PHONY: all comp sim clean

all: comp sim

comp:
	vcs -full64 -sverilog +acc +vpi -kdb +v2k +vcs+lic+wait \
    -debug_access+all+reverse -lca +notimingcheck +nospecify -Mupdate \
    -ntb_opts uvm-1.2 +define+UVM_VERDI_COMPWAVE \
    -timescale=1ns/1ps  -l compile.log \
    ../cpp/libmy.so \
    -cc ${GCC7_HOME}/bin/g++ -cpp ${GCC7_HOME}/bin/g++ \
    -CFLAGS "-g -O0 -DVCS -I../../cpp" \
    ../sv/dpi_wrapper.c \
    ../sv/Counter7.sv \
    ../sv/top_tb.sv \


sim:
	./simv +UVM_VERDI_TRACE="UVM_AWARE+RAL+HIER+COMPWAVE" +UVM_TR_RECORD -l sim.log  +fsdbfile+top.fsdb +ntb_random_seed=10000 +UVM_VERBOSITY=UVM_MEDIUM +UVM_TESTNAME=my_case0


clean:
	rm -rf csrc novas_dump.log profileReport.html simv ucli.key verdi_config_file compile.log novas.* profileReport profileReport.txt simprofile_dir simv.daidir vc_hdrs.h sim.log simv.cst top.fsdb inter.fsdb inter.fsdb.* .inter.fsdb.* verdiLog
